package com.douhao.personal.mapper;

import com.douhao.personal.model.RoleUserBo;
import com.douhao.personal.model.User;
import com.douhao.personal.model.UserRole;
import com.douhao.personal.model.UserRoleBo;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper {

    User selectById(String id);

    User login(Map<String, Object> map);

    int deleteByPrimaryKey(Long id);

    List<UserRoleBo> findUserAndRole(Map<String, Object> map);

    long userAndRoleCount(Map<String, Object> map);

    List<RoleUserBo> selectRoleByUserId(String id);

    void deleteByUserId(String userId);

    int insertSelective(UserRole entity);

    int updateByPrimaryKeySelective(User user);
}
